<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>欢迎使用联宇山洪预警预报系统</title>
<script language="JavaScript" type="text/JavaScript">
//切换验证码
function reloadVerifyCode()
{
	var codeimg = document.getElementById("verifycodeimg");
	codeimg.src="${cxtpath}/system/system_verifyCode.action?random=" + Math.random();
	//alert(codeimg.src);
}
//验证表单数据
function doVerify(form){
	if (form.adminname.value == "")
	{
		alert("请输超级管理员名称！");
		form.adminname.focus();
		return false;
	}
	if (form.adminpwd.value == "")
	{
		alert("请输超级管理员密码！");
		form.adminpwd.focus();
		return false;
	}
	if (form.verifycode.value == "")
	{
		alert("请输入验证码！");
		form.verifycode.focus();
		return false;
	}
	return true;
}
</script>
</head>
<body>
提示：<s:property value="#session.sessionmessage" />&nbsp;<s:actionmessage/>
<form action="${cxtpath}/system/system_initSystem.action" method="post" onsubmit="javascript:return doVerify(this)">
超级管理员名称：<input name="adminname" type="text" value="kingpower" size="30"><br>
超级管理员密码：<input name="adminpwd" type="password" value="admin" size="30"><br>
验证码：<input name="verifycode" type="text" size="6" onfocus="reloadVerifyCode()">
<img id="verifycodeimg" src="${cxtpath}/images/button.gif" title="点击，换一张"width="65" height="20" onclick="reloadVerifyCode()" style="cursor:pointer" ><br>
联宇工程技术有限公司授权码：<br>
<input name="authorizationcode" type="text" value="LYGS" size="4" maxlength="4">
<input name="authorizationcode" type="text" value="XTSQ" size="4" maxlength="4">
<input name="authorizationcode" type="text" value="MAXX" size="4" maxlength="4">
<input name="authorizationcode" type="text" value="LONG" size="4" maxlength="4"><br><br>
<input type="submit" value="确  定"><input type="reset" value="清  空">
</form>
</body>
</html>